#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include <QFile>
#include <QMediaPlayer>
#include <QProcess>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWidget; }
QT_END_NAMESPACE

class MainWidget : public QWidget
{
    Q_OBJECT

public:
    MainWidget(QWidget *parent = nullptr);
    ~MainWidget();

private slots:
    void on_loadFile_clicked();
    void on_listen_clicked();
    void on_saveTo_clicked();
    void onListVoicesProcessFinished();

private:
    Ui::MainWidget *ui;
    QString m_toolsDir;
    QString m_tmpDir;
    QProcess m_listVoicesProcess;
    QMediaPlayer *m_player;
};
#endif // MAINWIDGET_H
